{__NOLAYOUT__}
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>后台登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" language="javascript" src="__PUBLIC__/plugin/datepicker/jquery-1.7.2.min.js"></script>
<link href="__ADMIN__/styles/general.css" rel="stylesheet" type="text/css">
<link href="__ADMIN__/styles/main.css" rel="stylesheet" type="text/css">
</head>
<body style="background: #278296;color:white">
<form method="post" action="{:url('loginCheck')}" onsubmit="return validate()">
    <table cellspacing="0" cellpadding="0" style="margin-top:100px" align="center">
        <tbody><tr>
            <td>
                <img src="__ADMIN__/images/login.png" width="178" height="256" border="0" alt="ECSHOP">
            </td>
            <td style="padding-left: 50px">
                <table>
                    <tbody><tr>
                        <td>管理员姓名：</td>
                        <td>
                            <input type="text" name="username">
                        </td>
                    </tr>
                    <tr>
                        <td>管理员密码：</td>
                        <td>
                            <input type="password" name="password">
                        </td>
                    </tr>
                    <tr>
                        <td>验证码：</td>
                        <td>
                            <input type="text" name="chkcode" class="capital">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="right">
                            {:captcha_img()}
                            <a href="#" class="captcha_btn" style="color:#FFF;">看不清？换一张</a>
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>
                            <input type="submit" value="进入管理中心" class="button">
                        </td>
                    </tr>
                </tbody></table>
            </td>
        </tr>
    </tbody></table>
</form>
</body>
</html>
<script>
    //点击更换验证码
    var captcha_img = $('.captcha_btn').prev();
    captcha_img.click(function(){
        $(this).attr('src','/captcha.html?r='+Math.random());
    });
    $('.captcha_btn').click(function(){
        captcha_img.trigger('click');
    });
</script>